package com.adnaan.backend.common.config;

import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.oas.models.info.Info;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * author: adnaan
 * create: 2023-12-20 14:17
 * Description:
 */
@Configuration
public class OpenApiConfig {

    /**
     * 地址 http://localhost:9090/swagger-ui.html
     */
    @Bean
    public OpenAPI initOpenAPI() {
        return new OpenAPI().info(
                new Info().title("My Project API").description("OpenAPI").version("v1.0")
        );
    }
}
